////////////////////////////////////////////////////////////////////////////////
// Copyright 2010 Michael Schmalle - Teoti Graphix, LLC
// 
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// 
// http://www.apache.org/licenses/LICENSE-2.0 
// 
// Unless required by applicable law or agreed to in writing, software 
// distributed under the License is distributed on an "AS IS" BASIS, 
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and 
// limitations under the License
// 
// Author: Michael Schmalle, Principal Architect
// mschmalle at teotigraphix dot com
////////////////////////////////////////////////////////////////////////////////

package org.teotigraphix.swizplugin.bundles
{

import org.swizframework.core.IBeanFactory;
import org.teotigraphix.swizplugin.services.IBundleService;

/**
 * The <strong>IBundleServiceAdaptor</strong> allows the 
 * <code>IBundleService</code> to become ploymorphic and change some of 
 * it's internal implementations based on it's current environment.
 * 
 * @author Michael Schmalle
 * @copyright Teoti Graphix, LLC
 * @productversion 1.0
 */
public interface IBundleServiceAdaptor
{
	//--------------------------------------------------------------------------
	//
	//  Methods
	//
	//--------------------------------------------------------------------------
	
	/**
	 * Initializes the adaptor with the bundle service and bean factory.
	 * 
	 * @param The bundle service.
	 * @param factory An IBeanFactory used to read bundles.
	 */
	function initialize(service:IBundleService, factory:IBeanFactory):void;
	
	/**
	 * Initializes the adaptors storage.
	 */
	function initializeStorage():void;
	
	/**
	 * Returns an Array of BundleData.
	 * 
	 * @return An Array of BundleData.
	 */
	function getInstalledBundles():Array; // of BundleData
}
}